// components/swiper-collection/swiper-collection.js
const db = wx.cloud.database()
const Animalcollection = db.collection('c_animal')
const _ = db.command
Component({
  options: {
    addGlobalClass: true
  },

  /**
   * 组件的属性列表
   */
  properties: {},

  /**
   * 组件的初始数据
   */
  data: {
    aapBgc:
      'https://636c-cloud1-7g0jzi1h34a3b0ce-1318866511.tcb.qcloud.la/classify/poster.webp?sign=b162304b308a8426c3f27d2535d6f102&t=1690463931'
  },

  /**
   * 组件的方法列表
   */
  methods: {
    // 去动物认养
    toAdoptionProgram(event) {
      console.log(event)
      const navClass = event.currentTarget.id
      wx.navigateTo({
        url: `/pageAdoptionProgram/pages/${navClass}/${navClass}`
      })
    }
  },

  lifetimes: {
    attached() {}
  }
})
